# -*- coding: utf-8 -*-
"""User views."""
from flask import Blueprint, render_template
from flask_login import login_required
from main.helpers import templated

from .routes import reg_url

bp = Blueprint('user', __name__, url_prefix='/users')
reg_url(bp)


@login_required
@templated()
def members():
    """用户主页"""
    # import os,uuid,secrets
    # print(os.urandom(12))
    # print(secrets.token_urlsafe(16))
    # print(uuid.uuid4().hex)
    
    
    return dict()


@login_required
@templated()
def add_user():
    """推广注册用户"""
    return dict()


@login_required
@templated()
def qcode():
    """我的二维码"""
    return dict()


@login_required
@templated()
def my_promote():
    """我的推广"""
    return dict()


@login_required
@templated()
def my_miner():
    """我的矿机"""
    return dict()


@login_required
@templated()
def wallet():
    """我的钱包"""
    return dict()


@login_required
@templated()
def details():
    """收支详情"""
    return dict()


@login_required
@templated()
def news():
    """新闻"""
    return dict()


@login_required
@templated()
def info():
    """个人信息"""
    return dict()

